package dpatterns.strategy.simduck;

import dpatterns.strategy.simduck.ducks.Duck;
import dpatterns.strategy.simduck.ducks.impl.Decoy;
import dpatterns.strategy.simduck.ducks.impl.Mallard;
import dpatterns.strategy.simduck.ducks.impl.Redhead;
import dpatterns.strategy.simduck.ducks.impl.Rubber;

public class DuckSimulator {

	public static void main(String[] args) {
		
		System.out.println("Duck Demo\n");
		
		Duck mallard = new Mallard();
		mallard.display();
		mallard.sound();
		mallard.swim();
		mallard.fly();
		
		System.out.println("\n");
		
		Duck redhead = new Redhead();
		redhead.display();
		redhead.sound();
		redhead.swim();
		redhead.fly();
		
		System.out.println("\n");
		
		Duck rubber = new Rubber();
		rubber.display();
		rubber.sound();
		rubber.swim();
		
		System.out.println("\n");
		
		Duck decoy = new Decoy();
		decoy.display();
		decoy.swim();
	}

}
